function route(pathname, response) {
    if (pathname == "/hello"){
        response.writeHead(200, {"Content-Type": "text/plain"});
        response.write("Hello World");
        response.end();
    } else if (pathname == "/sumu") {
        response.writeHead(200, {"Content-Type": "text/plain ;charset=utf-8"});
        response.write("hi, 苏木！");
        response.end();
        console.log("hi, 苏木！");
    }

    console.log("About to route a request for " + pathname);
  }
   
  exports.route = route;